package org.simplextensions.registry;


public abstract class AService implements IService {

	private boolean started;

	private IServiceRegistry serviceRegistry;

	public IServiceRegistry getServiceRegistry() {
		return serviceRegistry;
	}

	public AService() {
		super();
	}

	public boolean isStarted() {
		return started;
	}
	
	public void init(IServiceRegistry serviceRegistry){
		this.serviceRegistry = serviceRegistry;
	}
	
	public void start() {
		this.started = true;
	}

	public void stop() {
		this.started = false;
	}

}